package com.bootdo.app.exception;

public enum RCode {

    SUCCESS(0,"SUCCESS"),

    ERROR(-1,"ERROR"),
    NEED_LOGIN(10,"NEED_LOGIN"),
    ILLEGAL_ARGUMENT(2,"ILLEGAL_ARGUMENT"),
    DAYUZERO(101,"请输入大于0的编号"),
    FANHUINULL(20,"未获得数据，请联系客服"),
    PASSWORDERROR(-55,"输入密码错误"),
    NOTFONDUSER(-50,"输入用户名错误")
    ;
    private final int code;
    private final String msg;

    RCode(int code , String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode(){
        return code;
    }
    public String getMsg(){
        return msg;
    }

}
